package com.um.jdy.platform.alarm.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xsj
 * 日期 2023/2/15
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class AlarmCodePageDTO extends PageDTO {

    @ApiModelProperty(value = "告警代码")
    protected String code;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = toPageParams(new String[]{"code"},
                new String[]{"code"});
        pageParams.getCondition().put("orderby","convert(code,signed) asc");
        return pageParams;
    }
}
